import { request } from '@/utils/request.js'

// 获取积分商品
export function apiGetIntegralProduct(data = {}) {
	return request({
		url: "/integralProduct/list",
		data,
	})
}

// 获取积分商品详情
export function apiGetIntegralProductDetail(data = {}) {
	return request({
		url: "/integralProduct/detail",
		data,
	})
}


// 积分兑换记录
export function apiGetIntegralRecord(data = {}) {
	return request({
		url: "/integralRecord/list",
		data,
	})
}

// 积分兑换商品
export function integralProductExchange(data = {}) {
	return request({
		url: "/integralProduct/exchange",
		data,
		method: "post",
	})
}


